import 'package:app/modules/example/unit_test.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  testWidgets('这是一个 Widget 测试', (WidgetTester tester) async {
    await tester.pumpWidget(new UnitPage());
    // 获取RaisedButton对象
    final btnClickMe = find.byKey(new Key("btnClickMe"));
    // 验证对象是否存在
    expect(btnClickMe, findsWidgets);
    // 执行一下按钮的点击事件
    tester.tap(btnClickMe);
  });
}
